package com.nuoniu.sibanyun.entity.cm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 合同阶段组
 * </p>
 *
 * @author 小啊刚
 * @since 2021-10-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("cm_contract_stage_group")
@ApiModel(value="CmContractStageGroup对象", description="合同阶段组")
public class CmContractStageGroup extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "分组编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "分组名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "是否默认")
    @TableField("is_default")
    private Boolean isDefault;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "阶段列表")
    @TableField(exist = false)
    private List<CmContractStage> contractStageList;
}
